import request from '@/utils/axios'

// 获取游戏列表
export function getGameList () {
  return request.get({ url: '/api/v1/client/game.banner' })
}

export function getGameListByArray(params?: {
  // 异步单个刷新游戏余额
  sync_balance?: boolean;
  game_type_id?: string;
}) {
  return request.get({ url: '/api/v1/client/game.types', params })
}


// 游戏大类
export function getGameKinds() {
  return request.get({ url: '/api/v1/client/game.kinds' })
}

// 获取游戏链接
export function getGameLink (params: any) {
  return request.get({ url: '/api/v1/client/game.play', params })
}

// 游戏渠道
export function getGameChannel() {
  return request.get({ url: '/api/v1/client/game.channel' })
}